package com.ztgf.shopping.models.service.shop;

import com.baomidou.mybatisplus.plugins.Page;
import com.ztgf.common.constant.Result;
import com.ztgf.shopping.models.bo.shop.ShopCollectBO;
import com.ztgf.shopping.models.bo.shop.ShopCollectBatchSaveBO;
import com.ztgf.shopping.models.bo.shop.ShopCollectSaveBO;
import com.ztgf.shopping.models.dto.shop.ShopCollectDTO;
import com.baomidou.mybatisplus.service.IService;
import com.ztgf.shopping.models.vo.shop.ShopCollectVO;

import java.util.ArrayList;

/**
 * <p>
 * 用户收藏  服务类
 * </p>
 *
 * @author zhanghualang
 * @since 2020-05-26
 */
public interface IShopCollectService extends IService<ShopCollectDTO> {
    boolean add(ShopCollectSaveBO shopCollectSaveBO);

    Page<ShopCollectVO> selectPageVO(ShopCollectBO shopCollectBO);//联表查询我的收藏

    Integer getBeCollectShopCount(Long shopId); //获取商铺被收藏数

    Integer getBeCollectCommodityCount(Long commodityId); //获取商品被收藏数

    ShopCollectDTO getByShop(ShopCollectSaveBO insertSaveBO); //根据shopID和类型和种类ID 获取收藏记录

    boolean updateByShop(ShopCollectSaveBO insertSaveBO);

    boolean addBatch(ShopCollectBatchSaveBO insertSaveBO); //批量添加收藏

    boolean deleteByBo(ShopCollectSaveBO bo);//点铺首页，商品详情页，取消收藏
}
